<?php

namespace common\models\marathon;

use Yii;

/**
 * This is the model class for table "{{%marathon_enroll_player_data}}".
 *
 * @property int $id
 * @property int $data_id 附加信息名称ID
 * @property int $player_id 报名选手ID
 * @property string $content 附加信息内容
 */
class MarathonEnrollPlayerData extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%marathon_enroll_player_data}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['data_id', 'player_id'], 'integer'],
            [['content'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'data_id' => '附加信息名称ID',
            'player_id' => '报名选手ID',
            'content' => '附加信息内容',
        ];
    }

}
